package com.yonyou.crm.base.brand.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.base.brand.entity.BrandVO;
import com.yonyou.crm.base.brand.rmitf.IBrandsRmService;
import com.yonyou.crm.base.brand.service.BrandsBizServiceImpl;
import com.yonyou.crm.common.page.entity.Page;
@Service("brandsService")
public class BrandsRmServiceImpl implements IBrandsRmService {

	@Autowired
	private BrandsBizServiceImpl bizService;
	
	@Override
	public List<BrandVO> getList() {
		return bizService.getList();
	}

	@Override
	public BrandVO getDetail(Long id) {
		return bizService.getDetail(id);
	}

	@Override
	public BrandVO insert(BrandVO brand) {
		return bizService.insert(brand);
	}

	@Override
	public BrandVO update(BrandVO brand) {
		return bizService.update(brand);
	}

	@Override
	public int delete(Long id) {
		return bizService.delete(id);
	}

	@Override
	public String batchDelete(String[] ids) {
		return bizService.batchDelete(ids);
	}

	@Override
	public BrandVO updateEnableState(Long id, Integer enableState) {
		return bizService.updateEnableState(id, enableState);
	}

	@Override
	public Page<BrandVO> batchUpdateEnableState(String[] idArray, Integer enableState, Page<BrandVO> page, Map<String, Object> searchMap) {
		bizService.batchUpdateEnableState(idArray, enableState);
		return bizService.getPageList(page, searchMap);
	}

	@Override
	public Page<BrandVO> getPageList(Page<BrandVO> requestPage, Map<String, Object> searchMap) {
		return bizService.getPageList(requestPage, searchMap);
	}

	@Override
	public List<BrandVO> getRefList(Map<String, Object> paraMap) {
		return bizService.getRefList(paraMap);
	}
	
	@Override
	public Page<BrandVO> getRefPage(Page<BrandVO> page, Map<String, Object> paraMap) {
		return bizService.getRefPage(page, paraMap);
	}
}
